#pragma once

#include "GenericJsonConverter.h"
#include <QJsonObject>
#include <AlgManager/DataX.h>

class DataXJsonConverter : public GenericJsonConverter {
public:
    // ==================== 序列化方法 ====================
    static QJsonObject toJson(const s_PreProcess3DSPara& obj);
    static QJsonObject toJson(const s_DefectPlateBPara& obj);
    static QJsonObject toJson(const s_JggyPara& obj);
    static QJsonObject toJson(const s_PoseH& obj);

    // ==================== 反序列化方法 ====================
    static s_PreProcess3DSPara fromJson_s_PreProcess3DSPara(const QJsonObject& json);
    static s_DefectPlateBPara fromJson_s_DefectPlateBPara(const QJsonObject& json);
    static s_JggyPara fromJson_s_JggyPara(const QJsonObject& json);
    static s_PoseH fromJson_s_PoseH(const QJsonObject& json);
};
